<?php

require_once("../private/system/dycms.php");

try {
	
dyInit('cms.php?$action=browse','cms.php?$action=view','cms.php?$action=edit');


//
// Get the query details
//

if(isset($_GET['p']))
	$q = $_GET['p'];
else
	$q = 'index';


//
// Get the page
//

$qObj = new cDycmsQuery();
$p = new cUiContentContainer();

$qObj->AddArray(array('site'=>'studios','name'=>$q));
if($qObj->Execute())
	$qObj->Render($p);
else
	$p->ContentNode()->AddChild(new cUiException(new dyExNotFound("Page not found (404)")));

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title><?php echo($qObj->GetSummary()); ?> - Dynamo Design Studios</title>
<meta name="Description" content="Your description here..." />
<meta name="Keywords" content="Your keywords here..." />
<link rel="stylesheet" href="assets/style.css" type="text/css" />
<link rel="stylesheet" href="assets/layout.css" type="text/css" />

<script language="JavaScript" type="text/javascript" src="assets/mootools.js"></script>
<script language="JavaScript" type="text/javascript" src="assets/nav.js"></script>
</head>

<body>
<div class="body">

<div class="headerCtr"><div class="header">
&nbsp;
</div></div>

<div class="logo">
	<?php uiTemplate('StudiosLogo'); ?>
</div>	

<div class="navCtr">
	<?php uiTemplate('StudiosNav'); ?>
</div>
    
<div class="bodyCtr">
    <div class="bodyMain">
	 <h1 style="text-align: right;"><?php echo($qObj->GetSummary()); ?></h1>
	 
     <?php $p->Display(); ?>
     <?php uiTemplate('StudiosFooter'); ?>
	</div>
</div>
</div>
</body>
</html>

<?php

dyEnd();

}
catch(Exception $e)
{
	$ex = new cUiException($e);
	$ex->Display();
}

?>